package com.yuer.rpc;

public class Netty01 {

    public static void main(String[] args) {
        System.out.println("args: " + args);
    }


    private ThreadLocal<Integer> local = new ThreadLocal<>();

    public void testMain() {
        for (int i = 0; i < 5; i++) {
            final int finalI = i;
            new Thread(new Runnable() {
                @Override
                public void run() {
                    local.set(finalI);
                }
            }).run();
        }
        System.out.println(local.get());
    }
}